package com.study.java.jinjie.file.lianxi;

import javax.swing.*;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Test {

    public static void main(String[] args) {


        //创建一个文件夹Student
        //Student.txt写入内容
        //Student.csv写入内容

        List<Student> chengji = new ArrayList<>();
        chengji.add(new Student(100001, "张1", 97));
        chengji.add(new Student(100002, "张2", 87));
        chengji.add(new Student(100003, "张3", 77));
        chengji.add(new Student(100004, "张4", 67));
        chengji.add(new Student(100005, "张5", 57));
        chengji.add(new Student(100007, "张43", 77));
        chengji.add(new Student(100008, "张54", 67));
        chengji.add(new Student(100009, "张46", 57));

        Score score = new Score(chengji);
//        score.dirk();
//        Test test = new Test();
////        score.pingJun();
//        score.pingJun1();


        Set<Student> studentSet = new HashSet<>();
        studentSet.add(new Student(100001, "张1", 37));
        studentSet.add(new Student(100002, "张2", 47));
        studentSet.add(new Student(100003, "张3", 57));
        studentSet.add(new Student(100004, "张4", 87));
        studentSet.add(new Student(100006, "张5", 97));
        Scoreset scoreset = new Scoreset(studentSet);
//        scoreset.xieRuTxt();
        scoreset.pingJun3();

//        scoreset.getStudent();

    }

}

